import { registerLocaleData } from '@angular/common';
import { HttpClientModule } from '@angular/common/http';
import zh from '@angular/common/locales/zh';
import { InjectionToken, Injector, NgModule } from '@angular/core';
import { FormsModule, ReactiveFormsModule } from '@angular/forms';
import { BrowserModule } from '@angular/platform-browser';
import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
import { NZ_I18N, zh_CN } from 'ng-zorro-antd/i18n';
import { AppComponent } from './app.component';
import { MenuToolComponent } from './menu-tool/menu-tool.component';
import { ngZorroPublicModule } from './ng-zorro-module';

import { ToolListComponent } from './tool-list/tool-list.component';
import { CustomTableComponent } from './component/ui/custom-table/custom-table.component';
import { NgxJsonViewerModule } from 'ngx-json-viewer';
import './component/index';
import './x6-angular-shape';
import { ThDirective } from './component/ui/directive/th.directive';
import { TdDirective } from './component/ui/directive/td.directive';
import { ClickOutsideDirective } from './component/ui/directive/click-outside.directive';
import { DataNullPipe } from './component/ui/pipe/data-null.pipe';
import { AddPortModalComponent } from './cell-set/add-port-modal/add-port-modal.component';
import { CellSetComponent } from './cell-set/cell-set.component';
import { NodeSetComponent } from './cell-set/node-set/node-set.component';
import { EdgeSetComponent } from './cell-set/edge-set/edge-set.component';
import { AddVoiceTriggerComponent } from './cell-set/add-voice-trigger/add-voice-trigger.component';
import { NodeViewEditorComponent } from './cell-set/node-view-editor/node-view-editor.component';
import { TextComponent } from './cell-set/node-view-editor/template/text/text.component';
import { ImageComponent } from './cell-set/node-view-editor/template/image/image.component';
import { Parent } from './cell-set/node-view-editor/template/parent';



registerLocaleData(zh);
@NgModule({
  declarations: [
    AppComponent,
    MenuToolComponent,
    ToolListComponent,
    CellSetComponent,
    CustomTableComponent,
    ThDirective,
    TdDirective,
    ClickOutsideDirective,
    DataNullPipe,
    AddPortModalComponent,
    NodeSetComponent,
    EdgeSetComponent,
    AddVoiceTriggerComponent,
    NodeViewEditorComponent,
    TextComponent,
    ImageComponent,
  ],
  imports: [
    BrowserModule,
    HttpClientModule,
    BrowserAnimationsModule,
    FormsModule,
    ReactiveFormsModule,
    ngZorroPublicModule,
    NgxJsonViewerModule
  ],
  providers: [
    { provide: NZ_I18N, useValue: zh_CN }
  ],
  bootstrap: [AppComponent]
})
export class AppModule {
}
